#include <iostream>
using namespace std;

const double Pi = 3.14159265;

double SurfaceArea(double radius, double height);

int main()
{

	cout << SurfaceArea(2, 3) << endl;

	return 0;
}

double SurfaceArea(double radius, double height)
{
	double area = 2 * Pi * radius * radius + 2 * Pi * radius * height;
	return area;
}